#ifndef WIDGET_H
#define WIDGET_H

#include <QMainWindow>
#include"mainwindow.h"
#include<QCloseEvent>
#include<QTimer>
namespace Ui
{
class Widget;
}

class Widget : public QMainWindow
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    void closeEvent(QCloseEvent *event);

private slots:
    void UpdateScore1();
    void UpdateScore2();
    void setscore();
    void UpdateTime();
    void settime();
    void stoptime1();

private:
    Ui::Widget *ui;
    MyScene *sc;
    int score1;
    int score2;
    int time;
    QTimer *timer1;
};

#endif // WIDGET_H
